package com.lsh.dao.db1;

import com.lsh.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ：LiuShihao
 * @date ：Created in 2020/6/23 9:05 上午
 * @desc ：
 */
@Repository
@Mapper
public interface UserMapper {
//    @ChangeSource
    List<User> findUser();

    void addUser(User user);

@Delete("delete from users where id = #{i}")
    int delUser(int i);
}
